package com.wmm.test;

import com.wmm.bean.Student;
import com.wmm.dao.StudentDao;
import com.wmm.factory.DaoFactory;
import com.wmm.service.StudentService;

import java.util.List;

public class StudentDemo {
    public static void main(String[] args) {
        StudentService studentService = new StudentService();
//        Student student = new Student(1002,"mmm","女","1996-12-23","","");
//
//        boolean b = studentService.addStudentServer(student);
//        System.out.println(b);

//        List<Student> students = studentService.queryStudentServer("1001", null);
//        for(Student st : students){
//            System.out.println(st.toString());
//        }
        StudentDao studentDao = DaoFactory.getStudentDao();
        int totalCount = studentDao.findqueryTotalCount("1001",null);
        System.out.println(totalCount);
    }
}
